About 527 letters

About 3 minutes

#str

Description: Convert a value to type str.

def str(x): ''' Convert a value to str :param x: a variable :return: the value converted to str '''

Example:

# print internally converts the object to string before printing, so it looks unchanged print(str(2e10)) print(str([1,2,3,4,5])) print(str((1,)))

>>> Establishing WebAssembly Runtime.

>>> Standby.

Powered by Shift.

Created in 6/9/2025

Updated in 6/9/2025